/*
 * Copyright (C) 2011 bus.fm
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.busfm.listener;

import com.busfm.model.ChannelList;
import com.busfm.model.PlayList;
import com.busfm.model.ResultEntity;
import com.busfm.model.UserEntity;

/**
 * @Description Interface which is used to handle the HTTP response.
 * 
 * @author DJ
 * @version 1.0
 * @Date 2011/08/21
 */
public interface NetResponseListener {
	public void clientDidLogin(NetResponseListener mClientListener,
			UserEntity userEnity);

	public void clientDidRegister(NetResponseListener mClientListener, ResultEntity resultEntity);

	public void clientDidResetPwd(NetResponseListener mClientListener, ResultEntity resultEntity);

	public void clientDidChangePwd(NetResponseListener mClientListener, ResultEntity resultEntity);

	public void clientDidCheckUserMail(NetResponseListener mClientListener, ResultEntity resultEntity);

	public void clientDidCheckNickName(NetResponseListener mClientListener, ResultEntity resultEntity);

	public void clientDidGetChannelList(NetResponseListener mClientListener,
			ChannelList channelList);

	public void clientDidGetPlayListByChannel(
			NetResponseListener mClientListener, PlayList playList ,int cid);

	public void clientDidGetPlayListByUserId(
			NetResponseListener mClientListener, PlayList playList);

	public void clientDidSongIsFaved(NetResponseListener mClientListener, ResultEntity resultEntity);

	public void clientDidFaveThis(NetResponseListener mClientListener, ResultEntity resultEntity ,String songId);

	public void clientDidFailWithError(NetResponseListener mClientListener,
			int mOp, int scUnknown, String localizedMessage);
	
	public void clientDidRequireAuthentication(NetResponseListener mClientListener);
	
	public void clientNoNeedUpdate(NetResponseListener mClientListener);
	
	public void clientNoEnoughCredit(NetResponseListener mClientListener);
}
